home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
mintprgs
/
mintupgr
/
disk7.zoo
/
elvis.zoo
/
usr
/
doc
/
elvis
/
environ.doc
< prev
next >
Wrap
Text File
|
1992-08-12
|
3KB
|
133 lines
_1_1. _E_N_V_I_R_O_N_M_E_N_T _V_A_R_I_A_B_L_E_S
Elvis examines several environment variables when it
starts up. The values of these variables are used inter-
nally for a variety of purposes. You don't need to define
all of these; on most systems, Elvis only requires TERM to
be defined. On AmigaDOS, MS-DOS or TOS systems, even that
is optional.
_T_E_R_M, _T_E_R_M_C_A_P
TERM tells Elvis the name of the termcap entry to use.
TERMCAP may contain either the entire termcap entry, or the
full pathname of the termcap file to search through.
If your version of Elvis is using tinytcap instead of
the full termcap library, then the value of TERMCAP _c_a_n_n_o_t
contain any backslash escapes (\E, \r, etc.) or carat
escapes (^[, ^M, etc.), because tinytcap doesn't understand
them. Instead, you should embed the actual control charac-
ter into the string.
_T_M_P, _T_E_M_P
These only work for AmigaDOS, MS-DOS and Atari TOS.
Either of these variables may be used to set the "directory"
option, which controls where temporary files are stored. If
you define them both, then TMP is used, and TEMP is ignored.
_L_I_N_E_S, _C_O_L_U_M_N_S
The termcap entry for your terminal should specify the
size of your screen. If you're using a windowing interface,
then there is an ioctl() call which will provide the size of
the window; the ioctl() values will override the values in
the termcap entry. The LINES and COLUMNS environment vari-
ables (if defined) will override either of these sources.
They, in turn, can be overridden by a ":set" command.
Normally, the LINES and COLUMNS variables shouldn't
need to be defined.
_E_X_I_N_I_T
This variable's value may contain one or more colon-
mode commands, which will be executed after all of the
".exrc" files but before interactive editing begins.
To put more than one command in EXINIT, you can
separate the commands with either a newline or a '|' charac-
ter.
August 10, 1992
11-2 ENVIRONMENT VARIABLES 11-2
_S_H_E_L_L, _C_O_M_S_P_E_C
You can use COMSPEC in MS-DOS, or SHELL in any other
system, to specify which shell should be used for executing
commands and expanding wildcards.
_H_O_M_E
This variable should give the full pathname of your
home directory. Elvis needs to know the name of your home
directory so it can locate the ".exrc" file there.
_T_A_G_P_A_T_H
This variable is used by the "ref" program. It con-
tains a list of directories that might contain a relevent
"tags" file. Under AmigaDOS, MS-DOS or Atari TOS, the names
of the directories should be separated by semicolons (";").
Under other operating systems, the names should be separated
by colons (":").
If you don't define TAGPATH, then "ref" will use a
default list which includes the current directory and a few
other likely places. See the definition of DEFTAGPATH at
the start of ref.c for an accurate list.
August 10, 1992